package com.taoye.thread;

public class Demo05 {
	public static void main(String[] args) {
		Thread t = new Demo05Thread();
		t.start();
	}
}

class Demo05Thread extends Thread {
	
	public Demo05Thread() {
		System.out.println("执行构造方法线程是："+Thread.currentThread().getName());
	}
	
	@Override
	public void run() {
		System.out.println("执行run方法线程是："+Thread.currentThread().getName());
	}
}